package com.poobo.service.impl;

import java.util.List;

import org.hibernate.annotations.Synchronize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.poobo.aop.SystemServiceLo4jAop;
import com.poobo.dao.ISysAccountDao;
import com.poobo.entity.TbSysAccount;
import com.poobo.service.ISysAccountService;
import com.poobo.util.pager.Page;

@Service
@Transactional
public class SysAccountServiceImpl implements ISysAccountService {

	@Autowired
	private ISysAccountDao iSysAccountDao;

	@Override
	public Page findTbAccount(TbSysAccount tbSysAccount,Page page) {
		return iSysAccountDao.findTbAccount(tbSysAccount,page);
	}

	@Override
	public List<TbSysAccount> getSysTbAccount(String loginName, String pwd) {
		return iSysAccountDao.getSysTbAccount(loginName, pwd);
	}

	@Override
	public TbSysAccount finSysAccountById(Integer id) {
		return iSysAccountDao.finSysAccountById(id);
	}

	@Override
	public void updateSysAccount(TbSysAccount sysAccount) {
		iSysAccountDao.updateSysAccount(sysAccount);
	}
}
